<html layout:decorate="~{project/indexManage/target_list}" xmlns:layout="http://www.w3.org/1999/xhtml">
<div layout:fragment="content_list">

    <!--<div class="search_condition">-->
    <!--<form id="search-form">-->
    <!--<input class="search-data" name="Q_LIKE_name" type="text" placeholder="角色名称" >-->
    <!--<select class="search-data" name="Q_EQ_type.id">-->
    <!--<option value="">选择身份</option>-->
    <!--<option th:each="parameter:${parameters}" th:value="${parameter.id}" th:text="${parameter.name}"></option>-->
    <!--</select>-->
    <!--<button type="button" id="search-btn" class="btn btn-primary btn-search" >搜索</button>-->
    <!--</form>-->
    <!--</div>-->

    <div class="main-body">

        <div id="toolbar" class="btn-group btn-group-sm " >

            <a type="button" class="btn btn-primary" data-toggle="modal"
               href="/project/indexManage/threshold_add" data-target="#modal">新增</a>

            <a type="button" onclick="" class="btn btn-danger">删除</a>
            <a type="button" href="/project/indexManage/threshold_edit" class="btn btn-info" data-toggle="modal" data-target="#modal">编辑</a>
            <a type="button" href="/project/indexManage/threshold_importData" class="btn btn-success" data-toggle="modal" data-target="#modal">导入数据</a>
            <a type="button" onclick="" class="btn btn-success">导出数据</a>
        </div>

        <table id="dataTable" data-url="/project/indexManage/threshold_data" data-page-list=[]  data-striped="true"
               data-pagination="true" data-page-size="15" data-cache="false" data-toolbar-align="right"
               >

        </table>

        <script>
            var dataFormat_threshold = [{
                checkbox: true
            },{
                field:'id',
                title:'id',
                visible:false
            },{
                field: 'number',
                title: '编号',
                sortable:true
            },{
                field: 'name',
                title: '名称',
                sortable:true
            },{
                field: 'object',
                title: '适用对象',
                sortable:true
            }, {
                field: 'source',
                title: '来源',
                sortable:true
            }, {
                field: 'modify',
                title: '是否可修改',
                sortable:true
            }, {
                field: 'systemDefault',
                title: '系统默认值',
                sortable:true
            }, {
                field: 'unit',
                title: '单位',
                sortable:true
            }];

            window.onload = function () {
                getTable(dataFormat_threshold, "dataTable");
            };

        </script>
    </div>
</div>
</html>

